package top.tenebrous.yzl.im.handler.channel;

import org.springframework.web.socket.WebSocketSession;
import top.tenebrous.yzl.im.message.Message;

/**
 * @author yazhang6
 */
public interface Channel<E extends Message> {

    /**
     * 处理事件
     */
    void doHandler(WebSocketSession session, String type, E e);
}
